package HomeWork;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class HomeWork01 {
    public static void main(String[] args) {

    }
    String reverse(String str,int start,int end){
        StringBuilder sb = new StringBuilder(str);
        while(end>start){
            char tmp = sb.charAt(start);
            sb.setCharAt(start,sb.charAt(end));
            sb.setCharAt(end,tmp);
            end--;start++;
        }
        return sb.toString();
    }
}
